import { default as request,cloud} from '@/framework/utils/request'

// 查询游客用户关联列表
export function listTouristUser(query) {
  return request({
    url: cloud.business + '/chatTouristUser/page',
    method: 'get',
    params: query
  })
}

// 查询游客用户关联详细
export function getTouristUser(id) {
  return request({
    url: cloud.business + '/chatTouristUser/detail?id=' + id,
    method: 'get'
  })
}

// 新增游客用户关联
export function addTouristUser(data) {
  return request({
    url: cloud.business + '/chatTouristUser/add',
    method: 'post',
    data: data
  })
}

// 修改游客用户关联
export function updateTouristUser(data) {
  return request({
    url: cloud.business + '/chatTouristUser/edit',
    method: 'post',
    data: data
  })
}

// 删除游客用户关联
export function delTouristUser(id) {
  return request({
    url: cloud.business + '/chatTouristUser/delete',
    method: 'post',
    data: { ids: id }
  })
}

// 删除游客用户关联
export function getTouristInfo(data) {
  return request({
    url: cloud.business + '/chatTouristUser/getTouristInfo',
    method: 'get',
    params: data
  })
}
